-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Creating the module #1
Conversation
714da60
to
f1a4c8e
Compare
3a51f97
to
11d06f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good!
I think we should consider renaming the $line
parameter to $message
.
* Name of the plugin that started the exception. | ||
* | ||
* @return string | ||
* Name of the plugin if given else "Unknown plugin". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just NULL
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because NULL is not human friendly as most exception will to send to system logs
src/Plugin/AuditLogger/Loki.php
Outdated
foreach ($curlOptions as $option) { | ||
[$key] = explode(' =>', $option); | ||
$key = trim($key); | ||
if (!defined($key)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe im not fully understanding this. Will this not accept any PHP constants? Is it just to filter out some invalid options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is should check that it is one of: https://www.php.net/manual/en/function.curl-setopt.php
Have tried to update this part.
Co-authored-by: Jeppe Kuhlmann Andersen <[email protected]>
Co-authored-by: Jeppe Kuhlmann Andersen <[email protected]>
Co-authored-by: Jeppe Kuhlmann Andersen <[email protected]>
Co-authored-by: Jeppe Kuhlmann Andersen <[email protected]>
Co-authored-by: Jeppe Kuhlmann Andersen <[email protected]>
Co-authored-by: Jeppe Kuhlmann Andersen <[email protected]>
Co-authored-by: Jeppe Kuhlmann Andersen <[email protected]>
Link to ticket
https://leantime.itkdev.dk/?tab=timesheet#/tickets/showTicket/1064
Description
Audit module to log audit message to configurable backed using Drupal's plugin API.
Screenshot of the result
Checklist
If your code does not pass all the requirements on the checklist you have to add a comment explaining why this change
should be exempt from the list.
Additional comments or questions
N/A